package com.safety51.bootstrap.demo.interfaces;

import com.safety51.commons.annotation.ResponseJson;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * Created by liuyuancheng on 2022/1/5  <br/>
 *
 * @author liuyuancheng
 */
@RestController
@RequestMapping(value = "legacy")
public class LegacyController {
    @GetMapping(value = "value")
    @ResponseJson(value = "value")
    public int value(){
        return 1;
    }

    @GetMapping(value = "list")
    @ResponseJson(value = "list1")
    public List<Object> list(){
        return Arrays.asList("12123",1234,"asdfasdf");
    }
}
